﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using WebApplication1.localhost; 

namespace WebApplication1
{
    public partial class WebForm1 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            WebApplication1.localhost.Order client = new localhost.Order();

            WebApplication1.localhost.OrderSoapHeader header = new localhost.OrderSoapHeader();
            header.UserName = "WMSService";
            header.Password = "vwKvdrnB2E";

            client.OrderSoapHeaderValue = header;

            WebApplication1.localhost.OrderDetailPatchWrapperEntity entity = new localhost.OrderDetailPatchWrapperEntity();

            entity.AssignQty = "2";
            entity.BatchCode = "asdf";
            entity.DueDate = "1988-1-1";
            entity.ProductCode = "sadf";
            entity.OrderID = "2ea8585e-fc42-44b7-bcd6-9a787da919cb";
            entity.DetailID = "602C5545-CECA-45E9-8CC5-9E4BB3CD4728";
            entity.ProductID = "483AC3EE-D274-497F-B6CE-7EAF3EF09C69";
            

            List<OrderDetailPatchWrapperEntity> list = new List<OrderDetailPatchWrapperEntity>();
            list.Add(entity);

            entity = new localhost.OrderDetailPatchWrapperEntity();
            entity.AssignQty = "2";
            entity.BatchCode = "asdf";
            entity.DueDate = "1988-1-1";
            entity.ProductCode = "sadf";
            entity.OrderID = Guid.NewGuid().ToString();
            entity.DetailID = Guid.NewGuid().ToString();
            entity.ProductID = Guid.NewGuid().ToString();
            list.Add(entity);


            client.InsertOrderDetailPatch(list.ToArray());
        }
    }
}